﻿using System;
using System.Collections.Generic;
using System.Text;

namespace QidorSpider.Components.Data
{
    /// <summary>
    /// from base Table
    /// </summary>
    [Serializable]
    public class BaseData
    {
        public string username { get; set; }
        public string pwd { get; set; }
        public string trojancode { get; set; }
        public string useragent { get; set; }
        public int delaytime { get; set; }
        public int isproxy { get; set; }
        public string proxyurl { get; set; }
        public int proxyport { get; set; }
        public string proxyuser { get; set; }
        public string proxypwd { get; set; }
        public string recplansel { get; set; }
        public bool isloginrun { get; set; }
        public bool ismini { get; set; }
        public bool isauto { get; set; }
        public int reccj { get; set; }
        public int recmg { get; set; }
        public int recpost { get; set; }
        public int recplan { get; set; }
        public string reserve1 { get; set; }
        public int reserve2 { get; set; }
        public string reserve3 { get; set; }
        public int readtimeout { get; set; }
        public bool autoupdate { get; set; }
    }

    /// <summary>
    /// from glist Table
    /// </summary>
    [Serializable]
    public class ClassData
    {
        public int g_id { get; set; }
        public string g_type { get; set; }
        public string g_name { get; set; }
        public int g_sn { get; set; }
    }

    /// <summary>
    /// list Table
    /// </summary>
    [Serializable]
    public class PageUrlData
    {
        public int id { get; set; }
        public int planid { get; set; }
        public string title { get; set; }
        public string link { get; set; }
        public string litpic { get; set; }
        public DateTime posttime { get; set; }
        public bool actionflag { get; set; }
        public bool postflag { get; set; }
        public bool chkflag { get; set; }
        public int errflag { get; set; }
    }

    /// <summary>
    /// from plan Table
    /// </summary>
    [Serializable]
    public class PlanData
    {
        public int id { get; set; }
        public string name { get; set; }
        public int rulecj { get; set; }
        public int rulemg { get; set; }
        public int rulepost { get; set; }
        public bool ymdir { get; set; }
        public bool deldownfile { get; set; }
        public bool forcepost { get; set; }
        public bool selfchk { get; set; }
        public int chkmode { get; set; }
        public string prename { get; set; }
        public string filepath { get; set; }
        public bool postsort { get; set; }
        public int plandelay { get; set; }
        public bool istime { get; set; }
        public string autotime { get; set; }
        public int sn { get; set; }
        public int g_id { get; set; }
    }

    /// <summary>
    /// from rule_c Table
    /// </summary>
    [Serializable]
    public class GatherData
    {
        public int id { get; set; }
        public string name { get; set; }
        public string urllist { get; set; }
        public string rllist { get; set; }
        public string rllisttitle { get; set; }
        public string urlfile { get; set; }
        public int subpageflag { get; set; }
        public bool subpagepost { get; set; }
        public string subpagerl2 { get; set; }
        public string subpageurl2 { get; set; }
        public string rlpage { get; set; }
        public string rlpageurl { get; set; }
        public string urlpage { get; set; }
        public string subpagestart { get; set; }
        public string subpageend { get; set; }
        public int subpagestep { get; set; }
        public string subpagecode { get; set; }
        public string subpageendcode { get; set; }
        public int len_t { get; set; }
        public int lentl { get; set; }
        public string urlattr { get; set; }
        public bool autolist { get; set; }
        public string urlautolist { get; set; }
        public string autoliststart { get; set; }
        public string autolistend { get; set; }
        public int autostep { get; set; }
        public bool down { get; set; }
        public string urllogin { get; set; }
        public string lgcookies { get; set; }
        public string filetype { get; set; }
        public string filedownurl { get; set; }
        public string filedownsign { get; set; }
        public string userparaname { get; set; }
        public string userpararule { get; set; }
        public string userparaflag { get; set; }
        public int sort { get; set; }
        public bool getall { get; set; }
        public int getnum { get; set; }
        public bool getrandom { get; set; }
        public string pagesname { get; set; }
        public string pagesitem { get; set; }
        public string pagesrule { get; set; }
        public string pagesurl { get; set; }
        public string zhengliname { get; set; }
        public string zhengliitem { get; set; }
        public int sn { get; set; }
        public int g_id { get; set; }
    }

    /// <summary>
    /// rule_key Table
    /// </summary>
    [Serializable]
    public class KeyData
    {
        public int id { get; set; }
        public string name { get; set; }
        public string mg_title { get; set; }
        public string key_title { get; set; }
        public string mg_content { get; set; }
        public bool imgmark { get; set; }
        public string imgmarkfilename { get; set; }
        public int imgwz { get; set; }
        public int imgalpha { get; set; }
        public double logow { get; set; }
        public double logoh { get; set; }
        public int sn { get; set; }
    }

    /// <summary>
    /// from rule_post Table
    /// </summary>
    [Serializable]
    public class PostData
    {
        public int id { get; set; }
        public string name { get; set; }
        public string urlchk { get; set; }
        public string urlpost { get; set; }
        public string urlreply { get; set; }
        public bool isreply { get; set; }
        public int len_t_s { get; set; }
        public int len_t_l { get; set; }
        public int len_c_s { get; set; }
        public int len_c_l { get; set; }
        public string ptitle { get; set; }
        public string pcontent { get; set; }
        public string puser { get; set; }
        public string ppsw { get; set; }
        public string para1 { get; set; }
        public string userlist { get; set; }
        public string paralist { get; set; }
        public bool ftp { get; set; }
        public string ftpserver { get; set; }
        public int ftpport { get; set; }
        public string ftpuser { get; set; }
        public string ftppsw { get; set; }
        public string ftppasv { get; set; }
        public string ymupdir { get; set; }
        public int codepage { get; set; }
        public int translang { get; set; }
        public string transparas { get; set; }
        public string pathfile { get; set; }
        public string urlfile { get; set; }
        public string pfiles { get; set; }
        public string psurl { get; set; }
        public bool isloginpost { get; set; }
        public string postcookies { get; set; }
        public string postokcode { get; set; }
        public string postaddurl { get; set; }
        public bool isubb { get; set; }
        public bool iscrlf { get; set; }
        public int sn { get; set; }
        public int g_id { get; set; }
    }
}
